import React from "react";
import ReactDOM from "react-dom";
import "./index.css";
import store from "./store";
import { StoreContext } from "redux-react-hook";
import Router from "./router";
ReactDOM.render(
  <StoreContext.Provider value={store}>
    <Router />
  </StoreContext.Provider>,
  document.getElementById("root")
);

// function active() {
//   if (timer) {
//     clearTimeout(timer)
//   }
//   let timer = setTimeout(() => {
//     console.log(111)

//   }, 200)
// }

// function active() {
//   if (timer) {
//     return
//   }
//   let timer = setTimeout(() => {
//     console.log(111)
//   }, 200)
// }
